import Vue from "../node_modules/vue/dist/vue.js";
import router from '@/router/router.js'
import App from "./App.vue"
import VueRouter from "vue-router";
//过滤器
import "@/filter/index"
import { httpGet, httpPost } from "@/util/Tool"
import axios from "@/api/index"

Vue.mixin({
    data() {
        return {
            msg: "from mixin msg"
        }
    },
    created: function () {
        console.log("mixin的created");
    },
    methods: {
        Ta() {
            console.log('我是来自mixin');
        }
    }
})

// 挂载Vue的prototype中，所有vue的组件可以通过this.$属性名来进行调用
// 会走请求和响应拦截器
Vue.prototype.$axios = axios;
// 不会走请求和响应拦截器
Vue.prototype.$httpGet = httpGet;
Vue.prototype.$httpPost = httpPost;
// 创建根组件
new Vue({
    router,
    render: h => h(App)
}).$mount('#app')

